# 如果有以前运行的版本就删了
if docker ps -a| grep -i consul; then
        docker rm -f  consul
fi

docker run -d -v /usr/consul:/consul/data -p 8300:8300 -p 8301:8301 -p 8301:8301/udp -p 8302:8302/udp -p 8302:8302 -p 8400:8400 -p 8500:8500 -p 8600:53/udp --name consul daocloud.io/library/consul agent -server -bootstrap -advertise 192.168.56.129 -client 0.0.0.0  -ui

